<?php
	
class GetLoad
{
	
	function __construct()
	{
		require_once("system/SQLcaozuo.php");
	
		
	}


	public function load($rul){
		$num = strpos($rul, "/");
		$zhixing = substr($rul, $num+1);
		require_once($rul.".php");

	}

	public function view($rul,$data){

		$num = strpos($rul, "/");
		$zhixing = substr($rul, $num+1)."View";
		require_once($rul.".php");
		$ve=new $zhixing();
		$ve->jianliview($data);

	}
	public function SQLquery($data){
		$SQL= new SQLcaozuo();
		$reluse= $SQL->query($data);
		return $reluse;

	}

	public function SQLquery2($data){
		$SQL= new SQLcaozuo();
		$reluse= $SQL->query2($data);
		return $reluse;

	}

	public function SQLcun($data){
		$SQL= new SQLcaozuo();
		$reluse= $SQL->cun($data);


	}
}